<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page language="java" contentType="text/html; charset=UTF-8" isELIgnored="false"
	pageEncoding="UTF-8"%>
<aside class="main-sidebar">
	<!-- sidebar: style can be found in sidebar.less -->
	<section class="sidebar">
		<!-- Sidebar user panel -->
		<div class="user-panel">
			<div class="pull-left image">
				<img src="${pageContext.request.contextPath}/img/user2-160x160.jpg"
					class="img-circle" alt="User Image">
			</div>
			<div class="pull-left info">
				<p>
					${loginEmp.name}
				</p>
				<a href="#"><i class="fa fa-circle text-success"></i> 在线</a>
			</div>
		</div>

		<!-- sidebar menu: : style can be found in sidebar.less -->
		<ul class="sidebar-menu">
			<li class="header">菜单</li>
			<li id="admin-index"><a
				href="${pageContext.request.contextPath}/pages/main.jsp"><i
					class="fa fa-dashboard"></i> <span>首页</span></a></li>

			<c:if test="${loginEmp.roleid == 1}">
			<li class="treeview">
				<a href="#"> <i class="fa fa-cube"></i>
					<span>商品管理</span> <span class="pull-right-container">
						<i class="fa fa-angle-left pull-right"></i>
					</span>
				</a>
				<ul class="treeview-menu">
					<li><a href="${pageContext.request.contextPath}/supplier/findByConditions"><i class="fa fa-circle-o"></i> 供应商</a></li>
					<li><a href="${pageContext.request.contextPath}/pages/goodstype-list.jsp"><i class="fa fa-circle-o"></i> 商品类别	</a></li>
					<li><a href="${pageContext.request.contextPath}/pages/goods-list.jsp"><i class="fa fa-circle-o"></i> 商品</a></li>
				</ul>
			</li>
			</c:if>
			<c:if test="${loginEmp.roleid == 1 || loginEmp.roleid==2 || loginEmp.roleid==3}">
			<li class="treeview">
				<a href="#"> <i class="fa fa-cube"></i>
					<span>采购管理</span> <span class="pull-right-container">
						<i class="fa fa-angle-left pull-right"></i>
					</span>
				</a>
				<ul class="treeview-menu">
					<li><a href="/pages/order-list.jsp"><i class="fa fa-circle-o"></i> 采购订单</a></li>
					<li><a href="/pages/order-approve-list.jsp"><i class="fa fa-circle-o"></i> 采购审批</a></li>
				</ul>
			</li>
			</c:if>
			<c:if test="${loginEmp.roleid == 1 || loginEmp.roleid==4 || loginEmp.roleid==5}">
			<li class="treeview">
				<a href="#"> <i class="fa fa-cube"></i>
					<span>销售管理</span> <span class="pull-right-container">
					<i class="fa fa-angle-left pull-right"></i>
				</span></a>
				<ul class="treeview-menu">

					<li><a href="#"><i class="fa fa-circle-o"></i> 销售订单</a></li>
					<li><a href="#"><i class="fa fa-circle-o"></i> 销售退货</a></li>
					<li><a href="#"><i class="fa fa-circle-o"></i> 销售审批</a></li>
				</ul>
			</li>
			</c:if>
			<c:if test="${loginEmp.roleid == 1 || loginEmp.roleid==10}">
			<li class="treeview">
				<a href="#"> <i class="fa fa-cube"></i>
					<span>商品运输</span> <span class="pull-right-container">
					<i class="fa fa-angle-left pull-right"></i>
				</span></a>
				<ul class="treeview-menu">
					<li><a href="/pages/transport-task-assign.jsp"><i class="fa fa-circle-o"></i> 运输任务指派</a></li>
					<li><a href="/pages/transport-task-list.jsp"><i class="fa fa-circle-o"></i> 运输任务查询</a></li>
				</ul>
			</li>
			</c:if>
			<c:if test="${loginEmp.roleid == 1 || loginEmp.roleid==7}">
			<li class="treeview">
				<a href="#"> <i class="fa fa-cube"></i>
					<span>仓库管理</span> <span class="pull-right-container">
					<i class="fa fa-angle-left pull-right"></i>
				</span></a>
				<ul class="treeview-menu">
					<li><a href="/pages/store-list.jsp"><i class="fa fa-circle-o"></i> 仓库列表</a></li>
					<li><a href="/pages/store-goods-list.jsp"><i class="fa fa-circle-o"></i> 库存查询</a></li>
					<li><a href="#"><i class="fa fa-circle-o"></i> 入库</a></li>
				</ul>
			</li>
			</c:if>
			<c:if test="${loginEmp.roleid == 1}">
			<li class="treeview">
				<a href="#"> <i class="fa fa-cube"></i>
					<span>报表中心</span> <span class="pull-right-container">
					<i class="fa fa-angle-left pull-right"></i>
				</span></a>
				<ul class="treeview-menu">
					<li><a href="/pages/report.jsp"><i class="fa fa-circle-o"></i> 进货报表
					</a></li>
				</ul>
			</li>
			</c:if>
			<c:if test="${loginEmp.roleid == 1}">
			<li class="treeview">
				<a href="#"> <i class="fa fa-cube"></i>
					<span>基础维护</span> <span class="pull-right-container">
					<i class="fa fa-angle-left pull-right"></i>
				</span></a>
				<ul class="treeview-menu">
					<li><a href="/pages/dept-list.jsp"><i class="fa fa-circle-o"></i> 部门维护</a></li>
					<li><a href="/pages/emp-list.jsp"><i class="fa fa-circle-o"></i> 员工维护</a></li>
					<li><a href="/pages/role-list.jsp"><i class="fa fa-circle-o"></i> 角色维护</a></li>
				</ul>
			</li>
			</c:if>
		</ul>
	</section>
	<!-- /.sidebar -->
</aside>